import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '@/components/Login.vue'
import Register from '@/components/Register.vue'
import Dashboard from '@/views/Dashboard.vue'
// 教师组件---
// 选题模块
import SelectTopicTeacher from '@/views/teacher/select-topic/SelectTopicTeacher.vue'
import PreselectTeacher from '@/views/teacher/select-topic/PreselectTeacher.vue'
// 论文阅读模块
import ThesisAssignmentTeacher from '@/views/teacher/select-topic/ThesisAssignmentTeacher.vue'
import ThesisReadingAssignment from '@/views/teacher/thesis-reading/ThesisReadingAssignment.vue'
import ReadingNoteReview from '@/views/teacher/thesis-reading/ReadingNoteReview.vue'
// 开题报告模块
import OpeningReportTemplateTeacher from '@/views/teacher/opening-report/OpeningReportTemplate.vue'
import OpeningReportReview from '@/views/teacher/opening-report/OpeningReportReview.vue'

// 学生组件---
// 选题模块
import SelectTopicStudent from '@/views/student/select-topic/SelectTopicStudent.vue'
import ThesisAssignmentStudent from '@/views/student/select-topic/ThesisAssignmentStudent.vue'
// 论文阅读模块
import ReadingNoteReviewStudent from '@/views/student/thesis-reading/ReadingNoteReviewStudent.vue'
import ThesisReading from '@/views/student/thesis-reading/ThesisReading.vue'
// 开题报告模块
import OpeningReportTemplate from '@/views/student/opening-report/OpeningReportTemplate.vue'
import OpeningReportSubmit from '@/views/student/opening-report/OpeningReportSubmit.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Login',
    component: Login
  },
  {
    path: '/login',
    name: 'Login',
    component: Login
  },
  {
    path: '/dashboard',
    name: 'Dashboard',
    component: Dashboard,
    children: [
      // 教师组件---
      // 选题模块
      {
        path: '/select-topic-teacher',
        name: 'SelectTopicTeacher',
        component: SelectTopicTeacher
      },
      {
        path: '/preselect-teacher',
        name: 'PreselectTeacher',
        component: PreselectTeacher
      },
      {
        path: '/thesis-assignment-teacher',
        name: 'ThesisAssignmentTeacher',
        component: ThesisAssignmentTeacher
      },
      // 论文阅读模块
      {
        path: '/thesis-reading-assignment',
        name: 'ThesisReadingAssignment',
        component: ThesisReadingAssignment
      },
      {
        path: '/reading-note-review',
        name: 'ReadingNoteReview',
        component: ReadingNoteReview
      },
      // 开题报告模块
      {
        path: '/opening-report-template-teacher',
        name: 'OpeningReportTemplateTeacher',
        component: OpeningReportTemplateTeacher
      },
      {
        path: '/opening-report-review',
        name: 'OpeningReportReview',
        component: OpeningReportReview
      },

      // 学生------
      // 选题模块
      {
        path: '/select-topic-student',
        name: 'SelectTopicStudent',
        component: SelectTopicStudent
      },
      {
        path: '/thesis-assignment-student',
        name: 'ThesisAssignmentStudent',
        component: ThesisAssignmentStudent
      },

      // 论文阅读模块
      {
        path: '/reading-note-review-student',
        name: 'ReadingNoteReviewStudent',
        component: ReadingNoteReviewStudent
      },
      {
        path: '/thesis-reading',
        name: 'ThesisReading',
        component: ThesisReading
      },
      // 开题报告模块
      {
        path: '/opening-report-template',
        name: 'OpeningReportTemplate',
        component: OpeningReportTemplate
      },
      {
        path: '/opening-report-submit',
        name: 'OpeningReportSubmit',
        component: OpeningReportSubmit
      },
    ]
  },
  {
    path: '/register',
    name: 'Register',
    component: Register
  },
  {
    path: '/register',
    name: 'Register',
    component: Register
  },
  

]

const router = new VueRouter({
  routes
})

export default router
